<%--
  Created by IntelliJ IDEA.
  User: mobom
  Date: 2016/11/22
  Time: 10:10
  To change this template use File | Settings | File Templates.
--%>

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  String basePathCl = request.getScheme()+"://"+request.getServerName()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta http-equiv="Expires" content="0">
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Cache-control" content="no-cache">
  <meta http-equiv="Cache" content="no-cache">
  <title>活动抽奖</title>
  <script src="<%=basePath%>weixin/js/jquery.min.js"></script>
  <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  <script src="<%=basePath%>weixin/js/page/share.js"></script>
  <script src="<%=basePath%>weixin/js/jquery.sha1.js"></script>

  <script src="<%=basePath%>js/prize/js/base.js"></script>
  <link rel="stylesheet" href="<%=basePath%>js/prize/css/base.css" />
  <script>
    window.basePathUrl='<%=basePath%>';
    window.prizeCode='${prizeCode}';
    window.type='${type}';
    $(function(){
      window.system.init();
      var jp = getPrizeByCode();
      var wxShare = {
        id : 'wxe5b8956aa9f1485e',
        ticket : '${ticket}',
        title: '手机摇一摇，抽万元豪华大奖—${nickname}抽中了'+jp.text+'啦！',
        desc : '${nickname}在游戏中'+jp.text+'抽中啦！小伙伴们快来一起抽大奖，还有更多奖品等着你~',
        imgUrl : '<%=basePathCl%>js/prize/images/share/'+jp.src,
        link : '<%=basePath%>api/wx/prize/index'
      };
      wxShareInit(wxShare);
    })
  </script>
</head>
<body>
<div class="awardBox clearfix">
  <div class="award-0">
    <img src="<%=basePath%>js/prize/images/guide.png" />
  </div>
  <div class="ewm">
    <img src="<%=basePath%>js/prize/images/ewm1.png" />
    <p>长按识别二维码</p>
    <p>获得更多优惠资讯</p>
  </div>
</div>
<div class="awardBox clearfix">
  <div class="award-1" id="getPrize">

  </div>
</div>
<div class="awardBox clearfix">
  <div class="title">
    <img src="<%=basePath%>js/prize/images/icon-3.png" />
  </div>
  <div class="award-2">
    <p>1、关注公众号并分享抽奖游戏至朋友圈。</p>
    <p>2、下载开摩邦网APP后，注册并完成1分钱交易即可。</p>
    <p>3、完成任务凭借获奖码到指定领取点领取奖品。</p>

    <div class="site">
      <div class="site-t">
        领取地点
      </div>
      <p><span>13959993047</span>1、弟仔摩托维修</p>
      <p>地址：桃溪中区41号（永春县城南街清洁厂旁边）</p>
      <p><span>15306960630</span>2、永春县虎仔摩托车维修店</p>
      <p>地址：桃城镇桃城路36号（永春县桃城中心小学对面）</p>
      <p><span>13959810349</span>3、阿汉摩托维修店</p>
      <p>地址：桃溪南环路472号（永春县汽车站对面）</p>
      <p><span>18959926226</span>4、正新轮胎，摩托车，电动车维修店</p>
      <p>地址：城东北街43号（永春县城东北街268号白马垄）</p>
    </div>
    <div class="award-order">
      <div>
        <p><img src="<%=basePath%>js/prize/images/icon-2.png" width="100%" /></p>
      </div>
      <div>
        <p>去领取点领奖，还能获得一次摩托车、电动车的车况检查机会。</p>
      </div>

    </div>

  </div>
</div>
<div class="awardBox clearfix">
  <div class="title">
    截止时间
  </div>
  <div class="award-1 award-3">
    <p>2016年12月3日 —— 2016年12月4日</p>
    <p class="tb">长按二维码下载开摩邦网APP</p>
    <p>
      <img src="<%=basePath%>js/prize/images/ewm.png" width="100" />
    </p>
  </div>
</div>
<div class="bz">
  备注：图片仅供参考奖品已实物为准，本活动的最终解释权归开摩邦网所有。
</div>
</body>
</html>